package protocol

import (
	"JoRedis/constant"
	"strconv"
)

type IntReply struct {
	Code int64
}

func MakeIntReply(code int64) *IntReply {
	return &IntReply{Code: code}
}

func (this *IntReply) ToBytes() []byte {
	return []byte(":" + strconv.FormatInt(this.Code, 10) + constant.CRLF)
}
